$(document).ready(function () {
    $('#horizontalTab').easyResponsiveTabs({
        type: 'default', //Types: default, vertical, accordion
        width: 'auto', //auto or any width like 600px
        fit: true   // 100% fit in a container
    });
});

//Vue初始化
var app_login;
app_login = new Vue({
    el: '#app_1',
    data: {
        userName: '',
        passWord: '',
        userNameRegister:'',
        emailRegister: '',
        passWordRegister: '',
        rememberPassWord:false,

    },
    methods: {
        //验证用户名是否正确
        handleLogin(){
            if((this.userName=='')||(this.passWord=='')||(this.userName!='admin')||(this.passWord!='123456')){
                this.checkUnsuccess();
            }else{
                window.open('projectInfo.html', '_self')
            }
        },
        //验证注册信息
        handleRegister(){
            this.checkRegisterInfo();
        },
        checkUnsuccess() {
            this.$confirm('用户名或密码填写错误!', '提示', {
                confirmButtonText: '确定',
                showCancelButton:false,
                type: 'warning'
            })
        },
        checkRegisterInfo() {
            this.$confirm('注册成功!', '提示', {
                confirmButtonText: '确定',
                showCancelButton:false,
                type: 'success'
            })
        },


    },
});
